CURR_DIR := $(shell pwd)

-include ../../sdk.mk

TARGET_EXE = sample_uevent
TARGET_OBJS = main.o

.PHONY=$(TARGET_EXT)

CFLAGS := $(SDK_CFLAGS) $(SDK_HARD_CFLAGS)
LDFLAGS := $(SDK_LDFLAGS) $(SDK_LIBS)

all: $(TARGET_EXE)

%.o:%.c
	$(CC) -o $@ -c $^ $(CFLAGS)

$(TARGET_EXE): $(TARGET_OBJS)
	$(CC) -o $@ $(TARGET_OBJS) $(LDFLAGS)
	rm  $(TARGET_OBJS)

clean:
	rm -rf *.o
	rm -rf $(TARGET_EXE) 
